package com.lian.aieduc.enums;

import lombok.Data;

/**
 * 用户角色
 */
public enum UserRoleType {
    ADMINISTRATOR(1,"管理员"), TEACHER(2,"老师"),STUDENT(3,"学生");

    private final String role;
    private final Integer code;

    UserRoleType(Integer code, String role) {
        this.code = code;
        this.role = role;
    }

    public String getRole() {
        return role;
    }

    public Integer getCode() {
        return  code;
    }
}
